package com.imooc.order.message;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author Jiayuan
 * @version 1.0
 * @description:
 * @time 10/29/2018 1:51 PM
 */
public interface StreamClient {

    String INPUT = "myMessage1";

    String OUTPUT = "myMessage2";

    @Input(StreamClient.INPUT)
    SubscribableChannel input();

    //MessageChannel
    @Output(StreamClient.OUTPUT)
    MessageChannel output();
}
